<!DOCTYPE html>
<html>

<head>
    <title>违章列表</title>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="Author" content="larry" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../statics/common/cascader/cascader/cascader.css" media="all">
    <link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/layui.css" media="all">
    <link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/autocomplete.css">
    <link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/soulTable.css">
    <link rel="stylesheet" type="text/css" href="../../statics/plugins/ztree/css/metroStyle/metroStyle.css">
    <link rel="stylesheet" type="text/css" href="../../statics/css/common.css">
    <link rel="stylesheet" type="text/css" href="../../statics/css/font-awesome-4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="../../statics/css/list-search-table.css">
    <!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-soul-table/docs/soulTable.css" media="all"/>-->
    <script type="text/javascript" src="../../statics/plugins/jquery.min.js"></script>
    <script type="text/javascript" src="../../statics/common/lib/vue.min.js"></script>
    <script type="text/javascript" src="../../statics/plugins/ztree/jquery.ztree.all.min.js"></script>
    <script type="text/javascript" src="../../statics/common/layui/layui.all.js"></script>
    <script type="text/javascript" src="../../statics/common/js/axios.min.js"></script>
    <script type="text/javascript" src="../../statics/common/js/xm-select.js"></script>
    <script type="text/javascript" src="../../statics/js/common.js"></script>
    <script type="text/javascript" src="../../statics/js/upload.js"></script>
    <script type="text/javascript" src="../../statics/common/step/steps.js"></script>
    <link rel="stylesheet" href="../../statics/css/jxcPublicAll.css" media="all">
    <link href="../../statics/common/photoviewer/dist/photoviewer.css" rel="stylesheet">
    <link rel="stylesheet" href="../../statics/common/step/steps.css">
    <!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.css" media="all">-->
    <link rel="stylesheet" href="../../statics/js/modules/cropper/cropper.css" media="all">
    <link rel="stylesheet" type="text/css" href="../../statics/css/viewer.min.css">
    <!--<script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.min.js"></script>-->
    <script src="../../statics/js/modules/cropper/cropper.min.js"></script>
    <script src="../../statics/common/photoviewer/dist/photoviewer.js"></script>
    <script src="../../statics/common/layui/autocomplete.js"></script>
    <script src="../../statics/js/modules/viewer/viewer.min.js"></script>
    <script src="../../statics/common/print-js/print.min.js"></script>
    <link rel="stylesheet" type="text/css" href="../../statics/common/print-js/print.min.css">
    <script type="text/javascript" src="../../statics/common/xmselect/xm-select.js"></script>
    <script type="text/javascript" src="../../statics/js/searchview.js"></script>
    <script type="text/javascript" src="../../statics/js/tableedit.js"></script>

    <!--<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.0&type=webgl&ak=eo4XeZhRKHsQ0NOe6u6NkKscmRsk416B"></script>-->

    <!-- 引入组件库 -->
    <link rel="stylesheet" type="text/css" href="../../statics/css/index.css">

    <style>
        ul.layui-tab-title>li {
            font-weight: bold;
        }

        .list-header-card {
            border: 0;
        }

        .active {
            background: none;
            color: #2251C5;
            border-bottom: 3px solid #2251C5;
        }
    </style>
</head>

<body class="ren-body">
    <div id="rrapp" v-cloak>
        <div class="list-header-content-box">
            <div class="list-header-card display">
               <template v-for="(statisticsCardData, index)  in statisticsCardDataList">
                    <div class="flex" @click="changeTab(statisticsCardData,index)"
                         :class="index === statisticsCardIndex ? 'active' : ''" style="cursor:pointer;">
                        <div class="list-header-card-text">{{statisticsCardData.text}}</div>
                        <div class="list-header-card-number">{{statisticsCardData.number}}</div>
                    </div>
                </template>
            </div>
        </div>
        <!-- 用新的违章查询方式了，不用这个旧的查询违章了
        <div style="margin-bottom: 10px;">当前违章查询状态：<span style="color: red;cursor: pointer;"
                 @click="illegalCheck">获取违章数据</span></div>-->

        <div id="searchId">
            <div class="list-search-title-box">
                <form class="layui-form">
                    <div style="display:flex;width: 100%;">
                        <div class="layui-form-item layui-row" style="width: 100%;">
                            <div class="list-search-form-button" style="width: 100%;">
                                <a class="layui-btn search-btn" id="exports">导出</a>
                                <a class="layui-btn search-btn" @click="submit">违章查询</a>
                                <a class="layui-btn search-btn" @click="workOrderPage">违章工单</a>
                                <a class="layui-btn search-btn" @click="illegalQueryAccountPage">违章账号</a>
                                <a class="layui-btn search-btn" @click="manualSmsNotification">手动短信通知</a>
                                <a class="layui-btn search-btn" @click="editMessageTemplatePage">消息模板</a>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div class="list-table-content-box">
            <table class="layui-hide" id="grid" lay-filter="grid"></table>
        </div>
        <form id="downLoadXls" style="display: none" method="post" target="">
            <input type="text" name="datas" />
        </form>
        <!-- 违章查询提交 -->
        <form v-show="showForm" class="layui-form ren-form" id="editForm">
            <div class="layui-form-item">
                <label class="layui-form-label"><span style="color:red;">*</span>查询平台:</label>
                <div class="layui-input-block">
                    <input type="radio" lay-filter="platform" name="platform"
                           v-for="item in platformDict" :value="item.key"
                           v-model="commitWorkOrder.platform"
                           lay-skin="primary" :title="item.label"/>
                </div>
            </div>
            <!--只有12123才有全部/部分选择-->
            <div class="layui-form-item" v-show="commitWorkOrder.platform=='1'">
                <label class="layui-form-label"><span style="color:red;">*</span>查询车辆:</label>
                <div class="layui-input-block">
                    <input type="radio" lay-filter="queryMode" name="queryMode"
                           v-for="(value,key) in queryModeDictMap" :value="key"
                           v-model="commitWorkOrder.queryMode"
                           lay-skin="primary" :title="value"/>
                </div>
            </div>
            <!--部分查询 && 查询平台==12123-->
            <div class="layui-form-item" v-show="commitWorkOrder.queryMode=='1' && commitWorkOrder.platform=='1'">
                <label class="layui-form-label"><span style="color:red;">*</span>所属公司:</label>
                <div class="layui-input-block">
                    <div id="purchaseSupplierId2"></div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit @click="commitWorkOrderEvent">确定</button>
                </div>
            </div>
        </form>

        <form v-show="showForm2" class="layui-form ren-form" id="editForm2">
            <div class="layui-form-item">
                <label class="layui-form-label">消息模板:</label>
                <div class="layui-input-block">
                    <textarea v-model="messageTemplateObj.msgContent" class="layui-textarea"
                              maxlength="500"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"></label>
                <div class="layui-input-block">
                    <span style="color: rgb(175, 175, 175);height: 30px;line-height: 30px;">
                        可选占位符如下 车牌号:#{hphm},违章行为:#{wfms},违章地点:#{wfdz},违章时间#{wfsj},过期时间#{daysOverdue}天,违章扣分:#{wfjfs},罚款:#{fkje}
                    </span>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit @click="editMessageTemplate">确定</button>
                </div>
            </div>
        </form>
    </div>

    <script src="../../statics/js/modules/car/carillegal.js"></script>
</body>

</html>